<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%creative_template}}".
 *
 * @property integer $id
 * @property string $name
 * @property integer $is_sl
 * @property string $code
 * @property string $last_update
 */
class CreativeTemplate extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%creative_template}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name', 'code'], 'required'],
            [['is_sl'], 'integer'],
            [['code'], 'string'],
            [['last_update'], 'safe'],
            [['name'], 'string', 'max' => 128]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'is_sl' => 'Is Sl',
            'code' => 'Code',
            'last_update' => 'Last Update',
        ];
    }
}
